<?php
/**
 * 用户封禁分类管理
 */

namespace App\Models\MainDB;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class UserBanClassify extends Model
{
    use SoftDeletes;
    protected $table = 'ln_user_ban_classify';

    protected $fillable = [
        'title',
        'type',
        'pid',
    ];

    public function classify()
    {
        return $this->hasOne(UserBanClassify::class, 'id','pid');
    }

    public function classifyMany()
    {
        return $this->hasMany(UserBanClassify::class, 'pid','id');
    }
}
